home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / grunda.exe / GRUNDA.DSK (.txt) < prev    next >
Turbo C Context File  |  1991-05-31  |  5KB  |  196 lines

  1. Turbo C Context File 
  2. ..\LIB\CS.LIB
  3. ..\LIB\OVERLAY.LIB
  4. ..\LIB\MATHS.LIB
  5. ..\LIB\EMU.LIB
  6. ..\LIB\C_JOY.C
  7. GRUNDA.C
  8. ..\LIB\C0S.OBJ
  9. C:\TC\USER
  10. C:\TC\USER\*.OBJ
  11. C:\TC\USER\*.EXE
  12. C:\TC\USER\*.*
  13. C:\TC\USER\*.C
  14. B:\*.C
  15. C:\TC\BIN\*.CPP
  16. C:\TC\EXAMPLES\*.C
  17. C:\TC\*.C
  18. C:\TC\BIN\*.C
  19. C:\TC\BIN\GR.BAK
  20.  void *.c 
  21. void *.c
  22. FIDRQQ
  23. keymin
  24. while
  25. lever
  26. (void)
  27. C:\TC\LIB\MOUSE.LIB
  28. C:\TC\LIB\*.C
  29. C:\TC\LIB\*.OBJ
  30. C:\TC\LIB\*.LIB
  31. C:\TC\BIN\NONAME00.C
  32. C:\TC\BIN\GRUNDA.C
  33. C:\TC\BIN\MAZE.C
  34. C:\TC\EXAMPLES\PLANETS.C
  35. C:\TC\BIN\MAZE.C
  36. C:\TC\BIN\GRAHICS.C
  37. C:\TC\MOUSERTN.C
  38. C:\TC\BIN\TEXTCA.C
  39. C:\TC\BIN\GRAHICS.C
  40. C:\TC\BIN\GRAHICS.C
  41. C:\TC\BIN\MOUSE.C
  42. C:\TC\BIN\JOYSTICK.C
  43. C:\TC\C_JOY.C
  44. C:\TC\C_JOY.C
  45. C:\TC\BIN\GRUNDA.C
  46. C:\TC\BIN\GRUNDA.C
  47.     if ((x==a) && (y==b)) {
  48.         end();
  49.     if (x > 21) {
  50.         x=21;}
  51.     if (x < 03) {
  52.         x=3;}
  53.     if (y < 02) {
  54.         y=2;}
  55.     if (y > 80) {
  56.         y = 80;}
  57.     ym = 0;
  58.     xm = 0;
  59.  || ((x == 5) && (y != 23)))
  60.     if (((x == 5) && (y == 2)) || ((x == 5) && (y == 23)))
  61.          x = x;
  62. if ((x == 5) && (y != 23))
  63.     x = x - xm;
  64.     if (x == 5) {
  65.         if ((y != 2) && (y != 23))
  66.             x = x - xm;
  67.     if (x == 5) {
  68.         if ((y != 2) && (y != 23))
  69.             x = x - xm;
  70.     gotoxy(x,y);
  71.     putchar(' ');
  72.     x = x + xm;
  73.     y = y + ym;
  74.     if (x > 79) {
  75.         x=79;}
  76.     if (x < 01) {
  77.         x=1;}
  78.     if (y < 02) {
  79.         y=2;}
  80.     if (y > 23) {
  81.         y = 23;}
  82.     if (x == 5) {
  83.         if ((y != 2) && (y != 23)){
  84.             x = x - xm;
  85.             y = y - ym;}
  86.     if (x == 76) {
  87.         if ((y != 2) && (y != 23)){
  88.             x = x - xm;
  89.             y = y - ym;}
  90.     ym = 0;
  91.     xm = 0;
  92.     gotoxy(x,y);
  93.     putchar(H);
  94.     return;
  95.     if (hm != 1) {
  96.         for (p = 0; p < 1000; p++);}
  97.     init();
  98.     title();
  99.     input();
  100.     roll();
  101.     results();
  102.     printf("Do you wish to run this program again? y/n\n");
  103.     rep=toupper(getch());
  104.     switch(rep){
  105.      case 'Y': main();
  106.      case 'N': printf("Thank you for your participation.  Goodbye.\n");
  107.         getch();
  108.      default:printf("Wrong!\n");
  109.                 if ((iii==1) && (maze[i][ii][0]==0)
  110.                 {
  111. rectangle(i*59,(ii-1)*59,(i+1)*59,ii*59);
  112.         if ((y+p)>24)
  113.               p=4;
  114.     do {
  115.     button=get_joy_button(0);
  116.      } while (button!=1);
  117.      for (p=0;p<65000;p++);
  118.             if ((b==22) || (b==3)){
  119.              b=b-bm;
  120. /*    if ((a==5) || (a==76))
  121.         if (b == 3)
  122.             b=b-bm;
  123.             a=a-am;
  124.         if (b == 22)
  125.             b=b-bm;
  126.             a=a-am;
  127. #include <stdio.h>
  128. #include <stdlib.h>
  129.     gotoxy(10,8);
  130.     puts("What Speed would you like to play at? (1=fast, 2=slow)");
  131.     while (s==0) 
  132.         c=getch();
  133.         if (c=='\0'){
  134.             c=getch();}
  135.         switch(c){
  136.             case 49: s=1;
  137.                      wait=40000;
  138.                         break;
  139.             case 50: s=2;
  140.                         wait=80000;
  141.                         break;
  142.             default: putchar('\a');
  143.       }
  144.             x=1;
  145.             level++;
  146.             gotoxy(40,13);
  147.             printf("%d", level);
  148.             echs=random(60)
  149.             why=random(20)
  150.             echs=echs+10
  151.             why=why+2
  152.             gotxy(echs,why);
  153.             putchar(K); 
  154.                 echs=random(60);
  155.                 why=random(20);
  156.                 echs=echs+10;
  157.                 why=why+2;
  158.                 gotoxy(echs,why);
  159.                 putchar(K);
  160.     if (level==0)
  161.         if ((x == echs) && (y == why))
  162.             lever=1;
  163.     if (echs==40)
  164.         echs=echs+1;
  165.     if (why==13)
  166.         why=why+1;
  167. int keymin=0;
  168. int keymax=0;
  169. int joymin=0;
  170. int joymax=0;
  171. int joy=0;
  172. int key=0;
  173.     if (hm != 1) {
  174.         for (p = 0; p < 50; p++) {
  175.             if (kbhit()) {
  176.                 p = 50;
  177.                }
  178.      }
  179. char hm=0;         /* Human Moved Flag Variable */
  180.             case 49: s=1;
  181.                         wait=40000;
  182.                   spd=10;
  183.                         break;
  184.             case 50: s=2;
  185.                         wait=80000;
  186.                   spd=50;
  187.                         break;
  188.     gotoxy(8,8);
  189.     puts("What Speed would you like to play at? (1<fastest> to 9<slowest>)");
  190.     while (spd==0) 
  191.         c=getch();
  192.         if (c=='\0'){
  193.             c=getch();}
  194.         switch(c){
  195. unsigned long p=0; /* counter variable for wait loop */
  196.